#miniApp.js

Page({
	data:{
		loading: false,
		color: "#000",
		background: "#f8f8f8",
		show: true,
		animated:false
	},
	toggleLoading(){
		this.setData({
			loading: !this.data.loading
		})
	},
	changeColor(){
		this.setData({
			color: "#07c160"
		})
	},
	changeBgColor(){
		this.setData({
			background: "#ededed"
		})
	},
	toggleShow(){
		this.setData({
			show: !this.data.show
		})
	},
	toggleAnimated(){
		this.setData({
			animated: !this.data.animated,
			show: !this.data.show
		})
	}
})